# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-pyldap
_pkgname=python-ldap
pkgver=3.4.2
pkgrel=0
pkgdesc="Python modules for implementing LDAP clients"
url="https://github.com/python-ldap/python-ldap"
arch="all"
license="Python-2.0 AND MIT"
depends="py3-asn1 py3-asn1-modules"
checkdepends="
	openldap
	openldap-back-mdb
	openldap-clients
	openldap-overlay-syncprov
	"
makedepends="python3-dev py3-setuptools openldap-dev"
replaces="py-pyldap"
provides="py-pyldap=$pkgver-r$pkgrel"
source="https://github.com/$_pkgname/$_pkgname/archive/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
3a68dd2c160d7d74061d9c9eb060be6faeec1f607f3853722f969d7d1dc76c7da160aa20a4c139feb4d2eba6dbf2e2cfb02551cabd6fbf413654f32f73e94c15  python-ldap-3.4.2.tar.gz
"
